<?php

class Application_Model_Token
{
    public $id;
    public $value;

    public static function fromTableRow($token)
    {
        $result = new Application_Model_Token();
        $result->id = (int)$token['token_id'];
        $result->value = $token['value'];
        return $result;
    }

    public function __destruct()
    {
        unset($this->id);
        unset($this->value);
    }
}

